FROM registry.cn-hangzhou.aliyuncs.com/fb513/eclipse-temurin:21-jre-alpine

COPY target/im-web-api.jar /opt/im-web-api.jar

ENTRYPOINT ["java", \
#  "-Dspring.profiles.active=dev", \
#  "-XX:InitialRAMPercentage=50", \
#  "-XX:MaxRAMPercentage=80", \
  "-jar", "/opt/im-web-api.jar"]

EXPOSE 8081